package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-04-06
 */
public class SaleGoods extends Model<SaleGoods> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 销售单id
     */
    private String saleId;

    /**
     * 销售订单商品表id
     */
    private String saleOrderGoodsId;

    /**
     * 借出单商品表id
     */
    private String borrowOutGoodsId;

    /**
     * 商品id
     */
    private String goodsId;

    /**
     * 商品数量
     */
    private BigDecimal number;

    /**
     * 已退货数量
     */
    private BigDecimal refundNumber;

    /**
     * 商品单位
     */
    private String unitId;

    /**
     * 换算倍数
     */
    private BigDecimal times;

    /**
     * 商品单价
     */
    private BigDecimal price;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 折扣后金额
     */
    private BigDecimal afterDiscountAmt;

    /**
     * 销售毛利
     */
    private BigDecimal profits;

    /**
     * 税额
     */
    private BigDecimal tax;

    /**
     * 备注
     */
    private String remark;

    /**
     * 所属公司
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getSaleId() {
        return saleId;
    }

    public void setSaleId(String saleId) {
        this.saleId = saleId;
    }
    public String getSaleOrderGoodsId() {
        return saleOrderGoodsId;
    }

    public void setSaleOrderGoodsId(String saleOrderGoodsId) {
        this.saleOrderGoodsId = saleOrderGoodsId;
    }
    public String getBorrowOutGoodsId() {
        return borrowOutGoodsId;
    }

    public void setBorrowOutGoodsId(String borrowOutGoodsId) {
        this.borrowOutGoodsId = borrowOutGoodsId;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public BigDecimal getNumber() {
        return number;
    }

    public void setNumber(BigDecimal number) {
        this.number = number;
    }
    public BigDecimal getRefundNumber() {
        return refundNumber;
    }

    public void setRefundNumber(BigDecimal refundNumber) {
        this.refundNumber = refundNumber;
    }
    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }
    public BigDecimal getTimes() {
        return times;
    }

    public void setTimes(BigDecimal times) {
        this.times = times;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    public BigDecimal getAfterDiscountAmt() {
        return afterDiscountAmt;
    }

    public void setAfterDiscountAmt(BigDecimal afterDiscountAmt) {
        this.afterDiscountAmt = afterDiscountAmt;
    }
    public BigDecimal getProfits() {
        return profits;
    }

    public void setProfits(BigDecimal profits) {
        this.profits = profits;
    }
    public BigDecimal getTax() {
        return tax;
    }

    public void setTax(BigDecimal tax) {
        this.tax = tax;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SaleGoods{" +
            "id=" + id +
            ", saleId=" + saleId +
            ", saleOrderGoodsId=" + saleOrderGoodsId +
            ", borrowOutGoodsId=" + borrowOutGoodsId +
            ", goodsId=" + goodsId +
            ", number=" + number +
            ", refundNumber=" + refundNumber +
            ", unitId=" + unitId +
            ", times=" + times +
            ", price=" + price +
            ", amount=" + amount +
            ", afterDiscountAmt=" + afterDiscountAmt +
            ", profits=" + profits +
            ", tax=" + tax +
            ", remark=" + remark +
            ", companyId=" + companyId +
        "}";
    }
}
